//
//  UserDefaultManager.h
//  Tools
//
//  Created by han on 2019/2/14.
//  Copyright © 2019 han. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UserDefaultManager : NSObject

/**
 *  存储用户偏好设置 到 NSUserDefults
 */
+ (void)saveUserData:(id)data forKey:(NSString*)key;
+ (void)saveUserIntegerData:(NSInteger)data forKey:(NSString *)key;
/**
 *  读取用户偏好设置
 */
+(id)readUserDataForKey:(NSString*)key;
+ (NSInteger)readUserIntegerForKey:(NSString *)key;

/**
 *  删除用户偏好设置
 */
+(void)removeUserDataForkey:(NSString*)key;
/**
 缓存文件的大小
 */
+(long long)fileCatchSize;

@end

NS_ASSUME_NONNULL_END
